﻿using FH.Application.BannerApp.Dtos;
using FH.Core;
using FH.Core.Entities;
using System;
using System.Collections.Generic;

namespace FH.Application.UserApp
{
    public interface ISettingService
    {
        /// <summary>
        /// 获取系统设置
        /// </summary>
        /// <returns></returns>
        AppConfig GetAppConfig();
        /// <summary>
        /// 更新图片
        /// </summary>
        /// <param name="config"></param>
        void UpdateAppConfig(AppConfig config);
        #region 广告
        List<BannerDto> GetBannerPage(int startPage, int pageSize, out int rowCount);
        BannerDto InsertOrUpdate(BannerDto dto);
        BannerDto Get(Guid id);
        /// <summary>
        /// 根据Id集合批量删除
        /// </summary>
        /// <param name="ids">Id集合</param>
        void DeleteBatch(List<Guid> ids);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id">Id</param>
        void Delete(Guid id);
        #endregion
        #region 客户
        List<CustomerDto> GetCustomerPage(int startPage, int pageSize, out int rowCount);
        CustomerDto InsertOrUpdateCustomer(CustomerDto dto);
        CustomerDto GetCustomer(Guid id);
        /// <summary>
        /// 根据Id集合批量删除
        /// </summary>
        /// <param name="ids">Id集合</param>
        void DeleteBatchCustomer(List<Guid> ids);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id">Id</param>
        void DeleteCustomer(Guid id);
        #endregion
    }
}
